public class ClassCompositionExample {
    public static void main(String[] args) {
        Engine v8Engine = new Engine("V8");

    Car sportsCar = new Car("法拉利",v8Engine);
    sportsCar.startCar();
    }
}
